import got from 'got'

const token = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVpZCI6IjY1MjdhZjg3ZmIxNTlmMmVhMjUzZWM2NSIsInZlcnNpb24iOjAsImJyYW5jaCI6InpoIn0sImlhdCI6MTY5ODA0NzU2OSwiZXhwIjoxNjk4MjIwMzY5fQ.PY_S0Yy2sj5sIZhI-KrBCXyuaOf27BeP17sGlCS_Y4k'
const path = 'https://wetabchat.haohuola.com/api/chat/conversation-v2'
const conversationId = ''

const promptGpt = async (prompt: String) => {
    const option = {
        headers: { token },
        json: { prompt, assistantId: "" }
    }
    const data = await got.post(path, option)
    console.log('%c [ data ]-9', 'font-size:13px; background:pink; color:#bf2c9f;', data)
}

export default promptGpt